package com.minivision.fdiot.common;

import javax.validation.constraints.Max;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 分页请求参数
 * @author hughzhao
 * @2018年3月1日
 */
@Setter
@Getter
@ToString
public class PageParam extends AuthParam {
    private static final long serialVersionUID = 972119139991003154L;

    @ApiModelProperty(value = "起始位置，从0开始")
    protected int offset = 0;
    @Max(value = 100, message = "每页条数最大为100")
    @ApiModelProperty(value = "每页条数，默认为20")
    protected int limit = 20;
    
}
